package com.mySchool.service.Impl;

import com.github.pagehelper.*;
import com.mySchool.entity.DTO.ProvinceInsertRequest;
import com.mySchool.entity.PO.*;
import com.mySchool.mapper.*;
import com.mySchool.service.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.stereotype.*;

import java.util.*;

/**
* @author : Hinton
* @时间 : 2024/11/9 下午8:30
*/
@Service
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceMapper provinceMapper;


    @Override
    public void insert(ProvinceInsertRequest newProvince) {
        provinceMapper.insert(newProvince);
    }

    @Override
    public void delete(List<Integer> ids) {
        provinceMapper.delete(ids);
    }

    @Override
    public List<ProvincePO> queryLower(String name) {
        // provinceMapper.queryBelower(name);
        return null;
    }

    @Override
    public ProvincePO findById(Long id) {
        return provinceMapper.selectById(id);
    }


}
